/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSAIDACONSULTAS")
public class TipoSaidaConsultasProteu implements Serializable{

    @Id
    @Column(name="TSC_ST_CODIGO")
    private String tscStCodigo;
    @Column(name="TSC_ST_DESCRICAO")
    private String tscStDescricao;

    public String getTscStCodigo() {
        return tscStCodigo;
    }

    public void setTscStCodigo(String tscStCodigo) {
        this.tscStCodigo = tscStCodigo;
    }

    public String getTscStDescricao() {
        return tscStDescricao;
    }

    public void setTscStDescricao(String tscStDescricao) {
        this.tscStDescricao = tscStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TipoSaidaConsultasProteu other = (TipoSaidaConsultasProteu) obj;
        if ((this.tscStCodigo == null) ? (other.tscStCodigo != null) : !this.tscStCodigo.equals(other.tscStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 67 * hash + (this.tscStCodigo != null ? this.tscStCodigo.hashCode() : 0);
        return hash;
    }



}
